<%--
  Created by IntelliJ IDEA.
  User: wanggege
  Date: 2020/9/2
  Time: 12:17 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="common/head.jsp"%>


<div class="container">
    <div class="location">
        <strong>你现在所在的位置是:</strong>
        <span>学生管理 >> 修改学生</span>
    <div style="width:500px; margin: 0 auto;">
        <form action="servlet?param=update" method="post">
            <input class="form-control" type="text" name="id" value="${sessionScope.student.id}" readonly><br>
            <input class="form-control" type="text" name="name" value="${sessionScope.student.name}" placeholder="请输入姓名" maxlength="20" required><br>
            <select class="form-control" name="sex" required >
            <c:set var="sex" value="${sessionScope.student.sex}" scope="session"/>
            <option  value="" >==请选择==</option>
            <option value="男"  <c:if test="${ '男' == sex }">selected</c:if> > 男</option>
            <option value="女"  <c:if test="${ '女' == sex }">selected</c:if> > 女</option>
            </select><br>
            <input class="form-control" type="date" name="birthday" value="${sessionScope.student.birthday}" required><br>
            <input class="form-control" type="email" name="email" value="${sessionScope.student.email}" readonly><br>
            <input class="form-control" type="text" name="remark" value="${sessionScope.student.remark}"placeholder="请输入备注" maxlength="50" required><br>
            <input id="up" type="submit" value="确认修改" class="form-control btn-success" style="font-size: 1.2em; color: black; width: 180px;height: 50px;"><br>
        </form>
    </div>
    </div>
</div>